<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/11/22
 * Time: 14:08
 */
namespace app\models;
use Yii;
class VipOrder extends  \yii\db\ActiveRecord{
    /**
     * @inheritdoc
     */
    public static function tableName(){
        return "{{%vip_order}}";
    }

    /**
     * @inheritdoc
     */

    public function rules(){
        return [
            [['store_id', 'user_id', 'order_no'], 'required'],
            [['id','store_id', 'user_id', 'is_pay' ], 'integer'],
            [[ 'pay_price'], 'number'],
            [['create_time'], 'string'],
            [['order_no'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'store_id' => 'Store ID',
            'user_id' => '用户id',
            'order_no' => '订单号',
            'pay_price' => '实际支付费用',
            'is_pay' => '支付状态：0=未支付，1=已支付',
            'create_time' => '支付时间',
        ];
    }

}